package tech.wangtong.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class User {
    private Integer id;
    private String name;
    private String password;
    private Integer sex;
    private Integer status;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date time;
    private String headPic;

    public User() {
    }

    public User(Integer id, String name, String password, Integer sex, Integer status, Date time, String headPic) {
        this.id = id;
        this.name = name;
        this.password = password;
        this.sex = sex;
        this.status = status;
        this.time = time;
        this.headPic = headPic;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getHeadPic() {
        return headPic;
    }

    public void setHeadPic(String headPic) {
        this.headPic = headPic;
    }
}